<?php
/**
 * @author andery <andery@foxmail.com>
 * @link http://www.minophp.com/
 * @version $Id: CDbException.php 2009-09-03 20:05:54Z andery $
 */
class CDbException extends CException
{
    public $db_type;
    public $statusCode;
    
    /**
     * @param array 错误信息
     */
    public function __construct($param)
    {
        $this->statusCode=$param['code'];
        $this->db_type=$param['db_type'];
        parent::__construct($param['message'], $param['code']);
    }
}
